/*
 * ThreadJuzEvent.h
 *
 *  Created on: 2017年5月28日
 *      Author: orange
 */

#ifndef THREADJUZEVENT_H_
#define THREADJUZEVENT_H_

#include "JuzEvent.h"

typedef void* (*JuzTaskEvent)(void*);

class ThreadJuzEvent: public JuzEvent {
public:
	ThreadJuzEvent(string msgName);
	virtual ~ThreadJuzEvent();

	void setTask(JuzTaskEvent task);
	JuzTaskEvent getTask();

	void setArgs(void *pArgs);
	void *getArgs();
	string getMsg();

public:
	static const char* mEventName;
	JuzTaskEvent task;
	string msgName;
	void *pArgs;
};

#endif /* THREADJUZEVENT_H_ */
